<!DOCTYPE html>
<html lang="en">
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
        <form id="updateForm">
            <input type="hidden" name="carId" th:value="${c.carId}">
            <input type="hidden" name="isLower" th:value="${c.isLower}">
            汽车名称：<input type="text" name="carName" th:value="${c.carName}"><br><br>
            价格：<input type="text" name="carPrice" th:value="${c.carPrice}"><br><br>
            类型：<select name="carType">
                        <option value="-1">请选择</option>
                        <th:block th:each="ct : ${carTypes}">
                            <option th:text="${ct.tname}" th:value="${ct.tid}" th:selected="${c.carType==ct.tid}"></option>
                        </th:block>
                  </select><br><br>
            生产日期：<input type="date" name="manuTime" th:value="${#dates.format(c.manuTime,'yyyy-MM-dd')}"><br><br>
            过期日期：<input type="date" name="expireTime" th:value="${#dates.format(c.expireTime,'yyyy-MM-dd')}">
        </form>
</body>
</html>